package ninth.线程操作案例.问题解决2_加入等待与唤醒;

public class Consumer implements Runnable {
    private Info info;

    public Consumer(Info info) {
        this.info = info;
    }

    @Override
    public void run() {
        for (int i = 0; i < 50; i++) {
            this.info.get();
        }
    }
}
